/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.mes.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.mes.domain.po.ManufactureOrderPO;
import com.xy.biz.mes.domain.query.ManufactureOrderQuery;

/**
 *
 *
 * @author zsp
 * @date 2022-1-6
 */
public interface ManufactureOrderDao {

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllManufactureOrder(Collection<ManufactureOrderPO> collection);

	/**
	 * 更新
	 *
	 * @param collection
	 */
	int updateManufactureOrder(Collection<ManufactureOrderPO> collection);

	/**
	 * 删除
	 *
	 * @param manufactureOrderId
	 */
	int deleteManufactureOrder(Long manufactureOrderId);

	/**
	 * 查找一个
	 *
	 * @param manufactureOrderId
	 * @return
	 */
	ManufactureOrderPO getManufactureOrder(Long manufactureOrderId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<ManufactureOrderPO> listManufactureOrderById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<ManufactureOrderPO> listManufactureOrder(ManufactureOrderQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countManufactureOrder(ManufactureOrderQuery query);

}
